<%@ Page Language="C#" MasterPageFile="~/Common/WebSiteMaster.master" AutoEventWireup="true" CodeBehind="B_InlineScript.aspx.cs" Inherits="ScottCateAjax2008.Lesson04.B_InlineScript" Title="Inline Script Debugger" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <script language="javascript" type="text/javascript">
        
        function noDebugger() {
            alert('not here');
            return true;
        }
        
        function catchDebugger() {
            debugger;
            alert('can break here');
            return true;
        }        
        
    </script>

    <h1>Debugger; in JavaScript</h1>
    
    <input type="button" onclick="noDebugger();" value="No Debugger" />
    <br />
    <input type="button" onclick="catchDebugger();" value="Catch Debugger" />

</asp:Content>
